#ifndef _DATE_H_
#define _DATE_H_

class DateTst
{
public:
    DateTst(){};
    ~DateTst(){};
    void createThread();

private:
    static void *doThread1(void *param)
    {
        return (void *)((DateTst *)param)->thread1();
    };
    int64_t thread1();

    void formatDate(time_t now, char *buffer, int buffsize);
    void forDateString2(time_t now, std::string &result);
    std::string forDateString(time_t now);
    void outputDate(void);
};

#endif